package br.com.insight.consultoria.negocio.fachada.informacoesacademicas;

import java.util.List;

import br.com.insight.consultoria.entity.InformacoesAcademicas;
import br.com.insight.consultoria.entity.Usuario;
import br.com.insight.consultoria.erro.exception.InsightException;
import br.com.insight.consultoria.negocio.bo.interfacebo.InformacoesAcademicasBO;

public class FachadaInformacoesAcademicasBean implements FachadaInformacoesAcademicas {

	private InformacoesAcademicasBO informacoesAcademicasBO;
	
	@Override
	public void inserir(InformacoesAcademicas informacoesAcademicas)
			throws InsightException {
		
		getInformacoesAcademicasBO().inserir(informacoesAcademicas);
		
	}
	
	@Override
	public void alterar(InformacoesAcademicas informacoesAcademicas)
			throws InsightException {

		getInformacoesAcademicasBO().alterar(informacoesAcademicas);
		
	}
	
	@Override
	public void excluir(InformacoesAcademicas informacoesAcademicas)
			throws InsightException {
		
		getInformacoesAcademicasBO().excluir(informacoesAcademicas);
		
	}
	
	@Override
	public InformacoesAcademicas getInformacoesAcademicas(Long id)
			throws InsightException {
		
		return getInformacoesAcademicasBO().getInformacoesAcademicas(id);
	}
	
	@Override
	public List<InformacoesAcademicas> pesquisar(Usuario usuario)
			throws InsightException {
		
		return getInformacoesAcademicasBO().pesquisar(usuario);
	}

	public InformacoesAcademicasBO getInformacoesAcademicasBO() {
		return informacoesAcademicasBO;
	}

	public void setInformacoesAcademicasBO(
			InformacoesAcademicasBO informacoesAcademicasBO) {
		this.informacoesAcademicasBO = informacoesAcademicasBO;
	}
	
	
}
